#include <iostream>
#include <string>
using namespace std;

class Dog
{
public:
	string name;

	Dog(int i = 0)
	{
		total = i;
	}

	void addfood(int number)
	{
		total = total + number;
	}

	int getfood()
	{
		return total;
	}
private:
	int total;
};

int main()
{
	Dog dog;
	dog.name = "dog";

	dog.addfood(2);
	dog.addfood(3);

	cout << dog.name << "get food is " << dog.getfood() << endl;
	return 0;
}


